﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FindIt.Data;
using FindIt.Model;

namespace FindIt.Domain.Handlers.Contributors {
    public class GetContributor {
        private readonly IContributorRepository _contributorRepository;

        public GetContributor(IContributorRepository contributorRepository) {
            _contributorRepository = contributorRepository;
        }

        public Contributor Execute(Guid contributorId) {
            return _contributorRepository.GetContributor(contributorId);
        }
    }
}
